<?
include_once ($_SERVER['DOCUMENT_ROOT']."/inc/conn.inc.php");
include_once ($_SERVER['DOCUMENT_ROOT']."/inc/property.inc.php");
include_once ($_SERVER['DOCUMENT_ROOT']."/inc/header.inc.php");

?>
<script>
    $(function() {
        $("#_shadowPop").draggable();
    });
</script>

<body>
<?
include_once ($_SERVER['DOCUMENT_ROOT']."/inc/topMenu.inc.php");
?>

<div id="_body" onmouseover="fnHideSubMenu()" style="height:40px;">
    <div id="_bodyLeft" style="height:39px;">
        <div id="_curMenu"><p></p></div>
        <div id="_curSubMenu" style="width:0;border:0;height:0">
        </div>
    </div>
    <div id="_bodyRight" style="height:39px;border:1px #FFF solid;">
        <div id="search01">
            <div class="normal">
                <input type="text" id="findComapny" onkeypress="fnGetList()" tabindex="1" style="width:150px;">
            </div>
            <div class="searchBtn" onClick="fnGetList01(1)" onkeypress="fnGetList()" style="width:50px;" tabindex="2">조 회</div>
        </div>
    </div>
</div>
<div id="_body1" onmouseover="fnHideSubMenu()" style="height:50px;">
    <div id="_bodyAll">
        <div id="grid01" onmouseover="fnHideSubMenu()" class="grid" style="float:left">
            <div id="grid01Top" class="gridTop">
                <div id="grid01Title" class="gridTitle"></div>
                <div id="grid01Cnt" class="gridCnt"></div>
            </div>
            <div id="sumArea">
                <div style="width:236px;"><p style="text-align:center">SUM</p></div>
                <div id="sumAmt" style="width:175px;"><p>0 <span>|</span></p></div>
                <div id="sumPayAmt" style="width:132px;"><p style="color:#CC0000;">0 <span>|</span></p></div>
            </div>
            <div id="grid01Header" style="overflow: hidden; height: 20px;"></div>
            <div id="grid01Body" style="overflow: auto" onscroll="fnScrolling('grid01')"></div>
            <div id="grid01BodyFix" style="position: absolute;display:none;overflow:hidden;"></div>
        </div>
        <div style="float:right;width:290px;height:310px;">
            <div id="grid02" onmouseover="fnHideSubMenu()" class="grid" style="float:right">
                <div id="grid02Top" class="gridTop">
                    <div id="grid02Title" class="gridTitle"></div>
                    <div id="grid02Cnt" class="gridCnt"></div>
                </div>
                <div id="grid02Header" style="overflow: hidden; height: 20px;"></div>
                <div id="grid02Body" style="overflow: auto" onscroll="fnScrolling('grid02')"></div>
                <div id="grid02BodyFix" style="position: absolute;display:none;overflow:hidden;"></div>
            </div>
            <div id="saveForm">
                <div class="frmGroup" style="height:203px;">
                    <input type="hidden" id="payCd">
                    <input type="hidden" id="billCd">
                    <div style="margin-top:5px">
                        <div class="frmTitle">내 역</div>
                        <div class="frmInput"><input type="text" id="article" style="width:190px;"> </div>
                    </div>
                    <div>
                        <div class="frmTitle">지급예정일</div>
                        <div class="frmInput"><input type="text" id="planDt" style="width:85px;text-align:center;margin-right:3px;" value="<?=$__curDate?>" onKeyup="fnSetDate(this);" maxlength="10"> </div>
                    </div>
                    <div>
                        <div class="frmTitle">금 액</div>
                        <div class="frmInput"><input type="text" id="amount" style="width:130px;text-align:right;margin-right:5px;" onKeyup="fnCommify(this)" onblur="fnSetTax()"><img src="/img/single.png" onclick="fnSetPayResult()" style="margin-right:5px;vertical-align:text-top;cursor:pointer;"><img src="/img/single2.png" onclick="fnSetPayResult('all')" style="vertical-align:text-top;cursor:pointer;"> </div>
                    </div>
                    <div>
                        <div class="frmTitle">원 금</div>
                        <div class="frmInput"><input type="text" id="orgAmount" style="width:130px;;text-align:right;" onKeyup="fnCommify(this)"> </div>
                    </div>
                    <div>
                        <div class="frmTitle">세 금</div>
                        <div class="frmInput"><input type="text" id="tax" style="width:130px;;text-align:right;" onKeyup="fnCommify(this)" onblur="fnRecount()"> </div>
                    </div>
                    <div>
                        <div class="frmTitle">거래처</div>
                        <div class="frmInput"><input type="text" id="compNm" style="width:70px;ime-mode:auto;" onkeypress="fnComboCompany(this.value,'','compCd');"><select id="compCd"><option value="">-거래처-</option></select></div>
                    </div>
                    <!--
                    <div>
                        <div class="frmTitle">메 모</div>
                        <div class="frmInput"><input type="text" id="memo" style="width:190px;"> </div>
                    </div>-->
                    <div>
                        <div class="frmTitle">유효여부</div>
                        <div class="frmInput">
                            <select id="flag" style="width:100px;">
                                <option value="Y">유효</option>
                                <option value="N">폐기</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="frmGroup" style="height:151px;margin-top:10px;">
                    <input type="hidden" id="paySeq">
                    <div style="margin-top:5px">
                        <div class="frmTitle">지급액</div>
                        <div class="frmInput"><input type="text" id="payAmount" style="width:150px;text-align:right;" onKeyup="fnCommify(this)"> </div>
                    </div>
                    <div>
                        <div class="frmTitle">지급일</div>
                        <div class="frmInput"><input type="text" id="actionDt" style="width:85px;text-align:center;margin-right:3px;" value="<?=$__curDate?>" onKeyup="fnSetDate(this);" maxlength="10"> </div>
                    </div>
                    <div>
                        <div class="frmTitle">통장일</div>
                        <div class="frmInput"><input type="text" id="bankDt" style="width:85px;text-align:center;margin-right:3px;" value="<?=$__curDate?>" onKeyup="fnSetDate(this);" maxlength="10"> </div>
                    </div>
                    <div>
                        <div class="frmTitle">메 모</div>
                        <div class="frmInput"><input type="text" id="payMemo" style="width:190px;"> </div>
                    </div>
                    <div>
                        <div class="frmTitle">유효여부</div>
                        <div class="frmInput">
                            <select id="payFlag" style="width:100px;">
                                <option value="Y">유효</option>
                                <option value="N">폐기</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div>
                    <div class="searchBtn" onClick="fnAddPayment()" style="width:70px;float:left;margin-left:60px;">지급추가</div>
                    <div class="searchBtn" onClick="fnSave()" style="width:50px;float:left;">저 장</div>
                    <div class="searchBtn" onClick="fnReset()" style="width:50px;float:left;">신 규</div>
                </div>
            </div>
        </div>
    </div>

</div>
<div id="_bottom">

</div>
<!--
<div id="_shadowPop">
    <div id="_popTop">
        <div>Express 상세정보</div>
        <div style="float: right"><img src="/img/close.png" onclick="fnShadowPop('off')" style="margin:4px 7px 0 0;cursor:pointer;"></div>
    </div>
    <div id="_popBody">
        <div style="height:10px;width:100%"></div>
        <div class="popGroup" style="height:287px;">
            <div style="margin-top:5px;">
                <div class="popTitle">BILL NO</div>
                <div class="popInput"><input type="text" id="billCd" onkeyup="this.value=this.value.toUpperCase()" style=";width:120px;background-color:#CBDDEE;"></div>
            </div>
            <div>
                <div class="popTitle">발송일자</div>
                <div class="popInput"><input type="text" id="issueDt" style="width:85px;text-align:center;margin-right:3px;" onKeyup="fnSetDate(this);" maxlength="10"><img src="/img/calendar.png" style="vertical-align:text-top;cursor:pointer;"></div>
            </div>
            <div>
                <div class="popTitle">Carrier</div>
                <div class="popInput">
                    <select id="expressCd"></select>
                    <select id="cargoType"><option value="">-TYPE-</option></select>
                </div>
            </div>
            <div>
                <div class="popTitle">지역/ZONE</div>
                <div class="popInput">&lt;!&ndash;<select id="zone"><option value="">-지역/ZONE-</option></select>&ndash;&gt;<input type="text" id="zone" style="background-color:#FCF6CB;width:150px;" readonly><input type="hidden" id="zoneCd" style="background-color:#FCF6CB;width:150px;"></div>
            </div>
            <div>
                <div class="popTitle">Destination</div>
                <div class="popInput"><input type="text" id="destNationCd" style="width:25px;" onkeyup="this.value=this.value.toUpperCase()" maxlength="2" onkeypress="fnGetZone(this,'N');"><input type="text" id="destAddr" style="width:325px;" onkeyup="this.value=this.value.toUpperCase()"></div>
            </div>
            <div>
                <div class="popTitle">Shipper</div>
                <div class="popInput"><input type="text" id="compNm" style="width:70px;ime-mode:auto;" onkeypress="fnComboCompany(this.value,'','compCd');"><select id="compCd"><option value="">-거래처-</option></select></div>
            </div>
            <div>
                <div class="popTitle">Consignee</div>
                <div class="popInput"><input type="text" id="consignee" style="width:360px;" onkeyup="this.value=this.value.toUpperCase()"></div>
            </div>
            <div>
                <div class="popTitle">ITEM</div>
                <div class="popInput"><input type="text" id="item" style="width:360px;" onkeyup="this.value=this.value.toUpperCase()"></div>
            </div>
            <div>
                <div class="popTitle">C/T</div>
                <div class="popInput"><input type="text" id="cargoTon" style="width:85px;text-align:right;" value="1"></div>
            </div>
            <div>
                <div class="popTitle">W/T</div>
                <div class="popInput"><input type="text" id="weightTon" style="width:85px;text-align:right;" onKeyup="fnCommify(this)" onkeypress="fnGetRate()"> &nbsp; <img src="/img/arrowRight.png"  style="vertical-align: text-bottom;"/>&nbsp; <input type="text" id="totalRate" style="width:120px;background-color:#FCF6CB;text-align:right;font-weight:bold;" readonly onkeyup="fnSetDate(this);"></div>
            </div>
            <div>
                <div class="popTitle">KG당 요율</div>
                <div class="popInput" style="width:125px;"><input type="text" id="ratePerWeight" style="width:85px;text-align:right;" onKeyup="fnCommify(this)"></div>
                <div class="popTitle">KG당 적용 요율</div>
                <div class="popInput" style="width:120px;"><input type="text" id="totalRatePerWeight" style="width:85px;text-align:right;" readonly onkeyup="fnSetDate(this);"></div>
            </div>
        </div>
        <div class="popGroup" style="height:89px;margin-top:10px;">
            <div style="margin-top:5px;">
                <div class="popTitle">화주D.C %</div>
                <div class="popInput" style="width:125px;"><input type="text" id="compDCRate" style="width:50px;text-align:right;margin-right:3px;color:#cc0000;" onkeypress="fnGetProfit()"> %</div>
                <div class="popTitle">유류할증 %</div>
                <div class="popInput" style="width:120px;"><input type="text" id="compOilRate" style="width:50px;text-align:right;margin-right:3px;color:#0000cc;" onkeypress="fnGetProfit()"> %</div>
            </div>
            <div>
                <div class="popTitle">D.C 금액</div>
                <div class="popInput" style="width:125px;"><input type="text" id="compDCAmount" style="width:120px;text-align:right;margin-right:3px;color:#cc0000;" onKeyup="fnCommify(this)" onkeypress="fnGetProfit()"></div>
                <div class="popTitle">유류할증료</div>
                <div class="popInput" style="width:120px;"><input type="text" id="compOilAmount" style="width:120px;text-align:right;margin-right:3px;color:#0000cc;" onKeyup="fnCommify(this);"></div>
            </div>
            <div>
                <div class="popTitle">화주청구금액</div>
                <div class="popInput" style="width:125px;"><input type="text" id="compInvAmount" style="width:120px;text-align:right;margin-right:3px;color:#0000cc;" onKeyup="fnCommify(this);" onkeypress="fnGetProfit()"></div>
                <div class="popTitle">TOTAL 청구금액</div>
                <div class="popInput" style="width:120px;"><input type="text" id="compTotalInvAmount" style="width:120px;text-align:right;margin-right:3px;font-weight:bold;color:#0000cc;" onKeyup="fnCommify(this);" onkeypress="fnGetProfit()"></div>
            </div>
        </div>
        <div class="popGroup" style="height:114px;margin-top:10px;">
            <div style="margin-top:5px;">
                <div class="popTitle">항공사D.C %</div>
                <div class="popInput" style="width:125px;"><input type="text" id="carrDCRate" style="width:50px;text-align:right;margin-right:3px;color:#0000cc;" onkeypress="fnGetProfit()"> %</div>
                <div class="popTitle">유류할증 %</div>
                <div class="popInput" style="width:120px;"><input type="text" id="carrOilRate" style="width:50px;text-align:right;margin-right:3px;color:#cc0000;" onkeypress="fnGetProfit()"> %</div>
            </div>
            <div>
                <div class="popTitle">D.C 금액</div>
                <div class="popInput" style="width:125px;"><input type="text" id="carrDCAmount" style="width:120px;text-align:right;margin-right:3px;color:#0000cc;" onKeyup="fnCommify(this)" onkeypress="fnGetProfit()"></div>
                <div class="popTitle">유류할증료</div>
                <div class="popInput" style="width:125px;"><input type="text" id="carrOilAmount" style="width:120px;text-align:right;margin-right:3px;color:#cc0000;" onKeyup="fnCommify(this)" onkeypress="fnGetProfit()"></div>
            </div>
            <div>
                <div class="popTitle">Carrier 청구</div>
                <div class="popInput" style="width:125px;"><input type="text" id="carrInvAmount" style="width:120px;text-align:right;margin-right:3px;color:#cc0000;" onKeyup="fnCommify(this)" onkeypress="fnGetProfit()"></div>
                <div class="popTitle">TOTAL 청구금액</div>
                <div class="popInput" style="width:125px;"><input type="text" id="carrTotalInvAmount" style="width:120px;text-align:right;margin-right:3px;color:#cc0000;font-weight:bold;" onKeyup="fnCommify(this)" onkeypress="fnGetProfit()"></div>
            </div>
            <div>
                <div class="popTitle">기타비용</div>
                <div class="popInput" style="width:125px;"><input type="text" id="extraCharge" style="width:120px;text-align:right;margin-right:3px;color:#0000cc;" onKeyup="fnCommify(this)" onkeypress="fnGetProfit()"></div>
                <div class="popTitle">PROFIT</div>
                <div class="popInput" style="width:125px;"><input type="text" id="profit" style="width:120px;text-align:right;margin-right:3px;background-color:#FCF6CB;font-weight:bold;color:#0000cc;" readonly></div>
            </div>
        </div>
        <div style="height:20px;padding-left:200px;">
            <div class="searchBtn" onClick="fnShadowPop('on')" style="width:50px;">신 규</div>
            <div class="searchBtn" onClick="fnShadowPop('on')" style="width:50px;">저 장</div>
        </div>
    </div>
</div>-->
</body>
</html>